package Exercicios2;

import java.util.Set;
import java.util.TreeSet;

class Animal {
}

class Dog extends Animal {
}

public class Gen2 {

	/**
	 * So pode receber conjunto do tipo Animal
	 * @param a
	 */
	public static void go(Set<Animal> a) {
	}

	public static void main(String[] args) {
		//TreeSet t = new TreeSet();
		//TreeSet<Dog> t = new TreeSet<Dog>();
		//TreeSet<Animal> t = new TreeSet<Dog>();
		TreeSet<Animal> t = new TreeSet<Animal>();
		go(t);
	}

}
